<!DOCTYPE html>
<html>
    <head>
        <title>{$article.post_title}</title>
        <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
        <meta name="description" content="{$site_info.site_seo_description|default=''}">
    <include file="public@head"/>
    <taglib name="app\portal\taglib\Portal"/>
</head>
<body id="body">

    <!-- header -->
<include file="public@header"/>

<!-- nav -->
<include file="public@nav"/>

<!-- banner -->
<include file="public@banner"/>

<!-- content内容区 -->
<div id="content">
    <div class="width1100 content_li">
        <div class="title">
            <table>
                <td>
                    <div class="li img sprite left"></div>
                </td>
                <td class="center">
                    <h3>{$article.post_title}</h3>
                </td>
                <td>
                    <div class="li img sprite  right"></div>
                </td>
            </table>
        </div>
        <div class="cont">
            <div class="overflow">
                <div class="col-xs-9 col-sm-9" style="padding-right: 15px;border: 1px solid #eee">

                    <div class="games_detail_infobox">
                        <span>{:date('Y-m-d H:i',$article.published_time)}</span>
                        <span>
                            <a href="javascript:;">
                                {$article.post_hits}
                                <i class="iconfont">&#xe775;</i>
                            </a>
                        </span>
                    </div>
                    <php>
                        $before_content_hook_param=[
                        'object_id'=>$article['id'],
                        'table_name'=>'portal_post',
                        'object_title'=>$article['post_title'],
                        'user_id'=>$article['user_id'],
                        'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                        'object'=>$article
                        ];
                    </php>
                    <hook name="before_content" param="before_content_hook_param"/>
                    <div class="games_detail_content">
                        {$article.post_content}              
                    </div>
                    <if condition="!empty($article['post_source'])">
                        <div>
                            <b>注：本文转载自{$article.post_source}，转载目的在于传递更多信息，并不代表本网赞同其观点和对其真实性负责。如有侵权行为，请联系我们，我们会及时删除。</b>
                        </div>
                    </if>

                    <php>
                        $after_content_hook_param=[
                        'object_id'=>$article['id'],
                        'table_name'=>'portal_post',
                        'object_title'=>$article['post_title'],
                        'user_id'=>$article['user_id'],
                        'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                        'object'=>$article
                        ];
                    </php>
                    <hook name="after_content" param="after_content_hook_param"/>

                    <php>
                        $comment_hook_param=[
                        'object_id'=>$article['id'],
                        'table_name'=>'portal_post',
                        'object_title'=>$article['post_title'],
                        'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                        'user_id'=>$article['user_id'],
                        ];
                        $comment=hook_one('comment',$comment_hook_param);
                    </php>

                    <if condition="empty($comment) && cmf_get_current_admin_id()">
                        <div style="border: 1px dashed #ddd;min-height: 200px;padding-top: 50px;">
                            <div class="alert alert-warning" role="alert">
                                此区域这为评论区，请安装评论插件！<br>
                                <em>注：普通用户不会看到此提示！</em>
                            </div>
                        </div>
                    </if>
                    {$comment}
                </div>

                <div class="col-xs-3 col-sm-3">
                    <widget name="hottest_articles">
                        <div class="col-3-hot">
                            <div class="list_name">
                                {$widget.title}
                            </div>
                            <div class="col-3-lists">
                                <php>
                                    $hot_articles=[];
                                </php>
                                <portal:articles limit="5" order="post.post_hits DESC"
                                                 categoryIds="$widget.vars.hottest_articles_category_id">                                           
                                    <a title="{$vo.post_title}" href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}" class="col-3-list">
                                        <span class="num">{$key+1}</span>                                               
                                        {$vo.post_title}
                                    </a>
                                </portal:articles>
                            </div>
                        </div>
                    </widget>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- 固定窗口 -->
<include file="public@fixed"/>

<!-- footer -->
<include file="public@footer"/>

<!-- script -->
<include file="public@script"/>

</body>
</html>